#!/bin/bash
# Find and enable/disable wireless devices

ACERHK_WIRELESS=/proc/driver/acerhk/wirelessled
ON_DIRECTORY=/tmp/acerhk
ON_FILE=/ACERHK_ON

if [ ! -d $ON_DIRECTORY ]; then
	mkdir $ON_DIRECTORY
fi

if [ -e $ON_DIRECTORY$ON_FILE ]; then
      echo 0 > $ACERHK_WIRELESS
      rm $ON_DIRECTORY$ON_FILE
else
      echo 1 > $ACERHK_WIRELESS
      touch $ON_DIRECTORY$ON_FILE
fi

